package com.lemon.components.ant.beans;

public class TableColumns {

	private String name;
	private String code;
	private Integer width;
	private boolean search;
	private String searchStr;
	private String type;
	private String sort;
	private SelectItem select;
	private String selectStr;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Override
	public String toString() {
		return "{name:\"" + name + "\", code:\"" + code + "\", width:\"" + width + "\", search:\"" + search + "\", searchStr:\"" + searchStr + "\", type:\"" + type + "\", sort:\"" + sort + "\", select:\"" + select + "\", selectStr:\"" + selectStr + "}";
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public boolean isSearch() {
		return search;
	}
	public void setSearch(boolean search) {
		this.search = search;
	}
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public SelectItem getSelect() {
		return select;
	}
	public void setSelect(SelectItem select) {
		this.select = select;
	}
	public String getSearchStr() {
		return search?"yes":"no";
	}
	public void setSearchStr(String searchStr) {
		this.searchStr = searchStr;
	}
	public String getSelectStr() {
		return select==null?null:select.getClazz();
	}
	public void setSelectStr(String selectStr) {
		this.selectStr = selectStr;
	}
}
